
<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, maximum-scale=1">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no, email=no">
    <meta content="fullscreen=yes,preventMove=no" name="ML-Config" />
    <meta http-equiv="content-language" content="zh-CN" />
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <meta name="keywords" content="家电销售">
    <meta name="description" content="冰箱、空调、电视、洗衣机">
    <title>登录</title>
    <script src="./js/common.js"></script>
    <script src="./js/jquery.min.js"></script>
    <link rel="stylesheet" href="./css/login.css">
    <script>
        /*var useragent = navigator.userAgent;
        if (useragent.match(/MicroMessenger/i) != 'MicroMessenger') {
            // 这里警告框会阻塞当前页面继续加载
            alert('已禁止本次访问：您必须使用微信内置浏览器访问本页面！');
            // 以下代码是用javascript强行关闭当前页面
            var opened = window.open('about:blank', '_self');
            opened.opener = null;
            opened.close();
        }*/
    </script>
</head>
<body>
<!--<div class="loginBox">-->
<!--    <div class="username">-->
<!--        <label for="user">-->
<!--            <span>登录名</span>-->
<!--        </label>-->
<!--        <input id="user" type="text" placeholder="请输入您的手机号">-->
<!--    </div>-->
<!--    <div class="password">-->
<!--        <label for="pass">-->
<!--            <span>密码</span>-->
<!--        </label>-->
<!--        <input id="pass" type="password" placeholder="请输入密码">-->
<!--    </div>-->
<!--</div>-->
<div class="loginBtn" >你好，由于您是新用户，请立即注册</div>
<!--<a href="/index/findback">-->
<!--    <div class="forgetPass">忘记密码？</div>-->
<!--</a>-->
<a  href="/index/sign">
    <div class="register">免费注册</div>
</a>
<script>

    function loginCheck(){
        var phone=$('#user').val();
        var password=$('#pass').val();
        $.ajax({
            type: urlType,
            url: '/login/login',
            data: {
                mobile : phone,
                password : password
            },
            dataType: "json",
            success: function (res) {
                console.log(res);
                if(res.code==200){
                    window.location.href='/index/home';
                }else{
                    alert(res.message);
                }
            },
            error: function () {
            }
        });
    }
</script>
</body>
</html>
